<div class="layui-body">
<div class="aright">

<div class="layui-tab" lay-filter="demo" style="margin: 20px 30px 20px 20px;">
  <ul class="layui-tab-title">
    <li class="layui-this">基本设置</li>
    <li>常用设置</li>
    <li>路由规则</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">

<form class="layui-form bform" method="post" action="{:url('man/config/edit','tag=1')}" enctype="multipart/form-data">
  <div class="layui-form-item">
    <label class="layui-form-label">网站名称：</label>
    <div class="layui-input-block">
      <input type="text" name="cwebname" value="{$conf.cwebname}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">统计代码：</label>
    <div class="layui-input-block">
     <textarea name="cwebtongji" placeholder="请输入内容" class="layui-textarea">{$conf.cwebtongji}</textarea>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">备案信息：</label>
    <div class="layui-input-block">
      <input type="text" name="cwebbottom" value="{$conf.cwebbottom}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

    <div class="layui-form-item">
    <label class="layui-form-label">题目看其他跳转地址：</label>
    <div class="layui-input-block">
      <input type="text" name="vendor_url" value="{$conf.vendor_url}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">题目点击返回跳转地址：</label>
    <div class="layui-input-block">
      <input type="text" name="return_url" value="{$conf.return_url}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">禁止访问城市列表：</label>
    <div class="layui-input-block">
      <input type="text" name="city" value="{$conf.city}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">答案尾部文字链接广告：</label>
    <div class="layui-input-block">
      <input type="text" name="answer_ad" value="{$conf.answer_ad}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
	  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
	
	</div>
    <div class="layui-tab-item">


	<form class="layui-form bform" method="post" action="{:url('man/config/edit','tag=2')}" enctype="multipart/form-data">

  <div class="layui-form-item">
    <div class="layui-inline">
    <label class="layui-form-label">短网址类型：</label>
    <div class="layui-input-inline">
       <select name="ctype">
        {if condition="$conf.ctype eq 1"}
          <option selected value="1">t.cn</option>
          {else /}
          <option value="1">t.cn</option>
          {/if}
          {if condition="$conf.ctype eq 2"}
          <option selected value="2">w.url.cn</option>
          {else /}
          <option value="2">w.url.cn</option>
          {/if}
          {if condition="$conf.ctype eq 3"}
          <option selected value="3">p.imtt.qq.com</option>
          {else /}
          <option value="3">p.imtt.qq.com</option>
          {/if}
       </select>
    </div>
  </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">是否开启广告悬浮：</label>
    <div class="layui-input-block">
       <input type="radio" name="spend" value="2" title="开启" {if condition="$conf.spend eq 2"}checked{/if}>
      <input type="radio" name="spend" value="1" title="关闭" {if condition="$conf.spend eq 1"}checked{/if}>
    </div>
  </div>

  <blockquote style="padding: 10px;border-left: 5px solid #FF5722;margin: 10px 0 20px 40px;" class="layui-elem-quote">生成短网址注意每天达到限制次数：<a href="http://mp.weixin.qq.com/" style="color:#FF5722;" target="_blank">API接口地址</a></blockquote>
  
  <div class="layui-form-item">
    <label class="layui-form-label">分享-APPID</label>
    <div class="layui-input-block">
      <input type="text" name="cappId" value="{$conf.cappId}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">分享-APPKEY</label>
    <div class="layui-input-block">
      <input type="text" name="cappSecret" value="{$conf.cappSecret}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">生成短网址-APPID</label>
    <div class="layui-input-block">
      <input type="text" name="cappdwz" value="{$conf.cappdwz}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">生成短网址-APPKEY</label>
    <div class="layui-input-block">
      <input type="text" name="cappkey" value="{$conf.cappkey}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
	  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
</div>
<div class="layui-tab-item">
<form class="layui-form bform" method="post" action="{:url('man/config/edit','tag=3')}" enctype="multipart/form-data">

  <div class="layui-form-item layui-form-text" >
    <label class="layui-form-label">路由规则</label>
     <div class="layui-input-block">
            <textarea style="height:600px;" name="domains" placeholder="请输入内容" class="layui-textarea">{$conf.code}</textarea>
      </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
	<script>
  layui.use('form',function(){
     var form = layui.form();
  })
  </script>
	
	</div>
  </div>
</div>
